<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<link rel="stylesheet" type="text/css" href="<c:url value="/resources/css/header.css"/>"/>

<div class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="<c:url value="/login"/>">Investment fund</a>
        </div>
        <ul class="nav navbar-nav navbar-right">
            <c:if test="${not empty sessionUser}">
                <li><a href="<c:url value="/profile/${sessionUser.userId}" />">${sessionUser.userLogin}
                    (ID: ${sessionUser.userId})</a></li>

                <li><a href="<c:url value="/my/messages" />">Messages</a></li>
                <li><a href="<c:url value="/profile/${sessionUser.userId}" />">Profile</a></li>
                <li><a href="<c:url value="/logout"/>">Logout</a></li>
            </c:if>
            <c:if test="${empty sessionUser}">
                <li><a href="<c:url value="/login"/>">Log In</a></li>
            </c:if>
        </ul>
    </div>
</div>